package com.jkoss.wine.statistics.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;


/**
 * 
 * 
 * @Author bg2it
 * @Version 1.0, 2019-08-21
 * @See
 * @Since com.jkoss.wine.statistics.entity
 * @Description: TODO
 */
@TableName("merchant_order")
public class MerchantOrder extends Model<MerchantOrder> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId("merchant_order_id")
    private String merchantOrderId;
    /**
     * 订单号
     */
    @TableField("order_num")
    private String orderNum;
    /**
     * 订单流程  0新订单 1已受理  2待收货 6退款中 7已退货 8取消订单  9 完成
     */
    @TableField("order_process")
    private Integer orderProcess;
    /**
     * 订单金额
     */
    @TableField("order_money")
    private Integer orderMoney;
    /**
     * 应收金额
     */
    @TableField("receivable_money")
    private Integer receivableMoney;
    /**
     * 实收金额
     */
    @TableField("real_money")
    private Integer realMoney;
    /**
     * 支付时间
     */
    @TableField("pay_time")
    private Date payTime;
    /**
     * 完成时间
     */
    @TableField("complete_time")
    private Date completeTime;
    /**
     * 店铺id
     */
    @TableField("shop_id")
    private String shopId;
    /**
     * 备注
     */
    @TableField("memo")
    private String memo;
    /**
     * 订单创建人 关联的是店铺员工的id
     */
    @TableField("creater")
    private String creater;
    /**
     * 订单操作人
     */
    @TableField("shop_operator")
    private String shopOperator;
    @TableField("merchant_operator")
    private String merchantOperator;
    /**
     * 添加时间
     */
    @TableField("add_time")
    private Date addTime;
    /**
     * 是否删除 0否1是
     */
    @TableField("del")
    private Integer del;
    /**
     * 账户类型：1-A帐，2-B帐
     */
    @TableField("account_type")
    private Integer accountType;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 审核人
     */
    @TableField("rvid")
    private String rvid;
    /**
     * 审核备注
     */
    @TableField("rvrm")
    private String rvrm;


    public String getMerchantOrderId() {
        return merchantOrderId;
    }

    public void setMerchantOrderId(String merchantOrderId) {
        this.merchantOrderId = merchantOrderId;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public Integer getOrderProcess() {
        return orderProcess;
    }

    public void setOrderProcess(Integer orderProcess) {
        this.orderProcess = orderProcess;
    }

    public Integer getOrderMoney() {
        return orderMoney;
    }

    public void setOrderMoney(Integer orderMoney) {
        this.orderMoney = orderMoney;
    }

    public Integer getReceivableMoney() {
        return receivableMoney;
    }

    public void setReceivableMoney(Integer receivableMoney) {
        this.receivableMoney = receivableMoney;
    }

    public Integer getRealMoney() {
        return realMoney;
    }

    public void setRealMoney(Integer realMoney) {
        this.realMoney = realMoney;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Date getCompleteTime() {
        return completeTime;
    }

    public void setCompleteTime(Date completeTime) {
        this.completeTime = completeTime;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public String getShopOperator() {
        return shopOperator;
    }

    public void setShopOperator(String shopOperator) {
        this.shopOperator = shopOperator;
    }

    public String getMerchantOperator() {
        return merchantOperator;
    }

    public void setMerchantOperator(String merchantOperator) {
        this.merchantOperator = merchantOperator;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    public Integer getAccountType() {
        return accountType;
    }

    public void setAccountType(Integer accountType) {
        this.accountType = accountType;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRvid() {
        return rvid;
    }

    public void setRvid(String rvid) {
        this.rvid = rvid;
    }

    public String getRvrm() {
        return rvrm;
    }

    public void setRvrm(String rvrm) {
        this.rvrm = rvrm;
    }

    @Override
    protected Serializable pkVal() {
        return this.merchantOrderId;
    }

    @Override
    public String toString() {
        return "MerchantOrder{" +
        ", merchantOrderId=" + merchantOrderId +
        ", orderNum=" + orderNum +
        ", orderProcess=" + orderProcess +
        ", orderMoney=" + orderMoney +
        ", receivableMoney=" + receivableMoney +
        ", realMoney=" + realMoney +
        ", payTime=" + payTime +
        ", completeTime=" + completeTime +
        ", shopId=" + shopId +
        ", memo=" + memo +
        ", creater=" + creater +
        ", shopOperator=" + shopOperator +
        ", merchantOperator=" + merchantOperator +
        ", addTime=" + addTime +
        ", del=" + del +
        ", accountType=" + accountType +
        ", updateTime=" + updateTime +
        ", rvid=" + rvid +
        ", rvrm=" + rvrm +
        "}";
    }
}
